home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / disk / misc / ADFlib.lha / Lib / adf_raw.h < prev    next >
C/C++ Source or Header  |  1999-05-09  |  1KB  |  49 lines

  1. /*
  2.  *  ADF Library. (C) 1997-1998 Laurent Clevy
  3.  *
  4.  *  adf_raw.h
  5.  *
  6.  */
  7.  
  8. #ifndef _ADF_RAW_H
  9. #define _ADF_RAW_H 1
  10.  
  11. #include "adf_str.h"
  12.  
  13. #define SW_LONG  4
  14. #define SW_SHORT 2
  15. #define SW_CHAR  1
  16.  
  17. #define MAX_SWTYPE 11
  18.  
  19. #define SWBL_BOOT         0
  20. #define SWBL_ROOT         1
  21. #define SWBL_DATA         2
  22. #define SWBL_FILE         3
  23. #define SWBL_ENTRY        3
  24. #define SWBL_DIR          3
  25. #define SWBL_CACHE        4
  26. #define SWBL_BITMAP       5
  27. #define SWBL_FEXT         5
  28. #define SWBL_LINK         6
  29. #define SWBL_BITMAPE      5
  30. #define SWBL_RDSK         7
  31. #define SWBL_BADB         8
  32. #define SWBL_PART         9
  33. #define SWBL_FSHD         10 
  34. #define SWBL_LSEG         11
  35.  
  36. RETCODE adfReadRootBlock(struct Volume*, long nSect, struct bRootBlock* root);
  37. RETCODE adfWriteRootBlock(struct Volume* vol, long nSect, struct bRootBlock* root);
  38. RETCODE adfReadBootBlock(struct Volume*, struct bBootBlock* boot);
  39. RETCODE adfWriteBootBlock(struct Volume* vol, struct bBootBlock* boot);
  40.  
  41. unsigned long adfBootSum(unsigned char *buf);
  42. unsigned long adfNormalSum( unsigned char *buf, int offset, int bufLen );
  43.  
  44. void swapEndian( unsigned char *buf, int type );
  45.  
  46. #endif /* _ADF_RAW_H */
  47.  
  48. /*##########################################################################*/
  49.